#11 ✓resolved
Rick DeNatale

Export Folding is not UTF-8 Safe

Reported by Rick DeNatale | May 27th, 2009 @ 11:38 AM

The folding which happens when exporting a calendar currently splits at a fixed character position.

This may cause a UTF-8 string with multi-byte characters to be split producing invalid UTF-8 data.

Comments and changes to this ticket

  • Rick DeNatale

    Rick DeNatale May 28th, 2009 @ 08:34 AM

    • State changed from “new” to “resolved”

    I suspect that String.unpack is actually quicker than checking the byte with ruby, since it's a C 'primitive'

    In any case I doubt that it makes much performance difference, I trust String#pack to get the utf-8 rules right.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket

Pages